<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.message.edit")}</title>
<meta name="author" content="EVOLUTION Team" />
<meta name="copyright" content="EVOLUTION" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.lSelect.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<style type="text/css">
.roles label {
	width: 150px;
	display: block;
	float: left;
	padding-right: 6px;
}
</style>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
	var $householdAreaId = $("#householdAreaId");
	var $currentAreaId = $("#currentAreaId");
	var $localCriminalAreaId = $("#localCriminalAreaId");
	var $relativeAreaId = $("#relativeAreaId");
	
	
	[@flash_message /]
	
    // 户籍地区选择
	$householdAreaId.lSelect({
		url: "${base}/common/area.jhtml"
	});
	
	// 现地址选择
    $currentAreaId.lSelect({
		url: "${base}/common/area.jhtml"
	});
	
	// 亲属地址选择
	$relativeAreaId.lSelect({
	    url: "${base}/common/area.jhtml"
	});
	
	//本地落脚点地址
	$localCriminalAreaId.lSelect({
	    url: "${base}/common/area.jhtml"
	});
	
    //增加自定义方法:验证输入框是否输入
	$.validator.addMethod("checkInput", 
	  function(value, element, param) {
	    if($(param).length){
	      var paramValue = $(param).val();
	      if ($.trim(paramValue) == ""){
	         return false;
	      } else {
	         return true;
	      }
	    } else {
	       return true;
	    }
	  },
	  "${message("admin.validate.required")}"
	);
	

	$.validator.addMethod("chooseOne",
	  function(value, element, param){
	     var penaltyLength = $('#casePenaltyId input:checked').length;
	     var criminalLength = $('#caseCriminalId input:checked').length;
	     if( penaltyLength == 0 && criminalLength == 0 ){
	        return false;
	     } else if ( penaltyLength > 0 && criminalLength == 0 ){
	        return true;
	     } else if ( penaltyLength == 0 && criminalLength > 0){
	        return true;
	     } else{
	       return false;
	     }
	  },
	  "${message("admin.validate.requiredOptions")}"
	);	
	
	//职业
	$('#professionId').change(function(){
	  $('#newProfessionInputId').remove();
	  $('#tdProfessionId label[class*="fieldError"]').remove();
	  if($(this).find("option:selected").is(':last-child')){
	    var newInput = '<input name="professionAnother" id="newProfessionInputId" type="text" style="margin-top:10px;" placeholder="${message("admin.message.anotherInput")}" class="text fieldError"></input>'+
	                   '<label class="fieldError" for="newInput">${message("admin.message.inputRequired")}</label>';
	    $('#tdProfessionId').append(newInput);
	  }
	});	
	
	//收入主要来源
	$('#mainIncomeId').change(function(){
	   $('#mainIncomeNewInputId').remove();
	   $('#tdMainIncomeId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	      var mainIncomeNewInput = '&nbsp;<input type="text" class="text fieldError" id="mainIncomeNewInputId" placeholder="${message("admin.message.anotherInput")}" name="mainIncomeAnother"></input>'+
	                               '<label class="fieldError" for="mainIncomeNewInputId">${message("admin.message.inputRequired")}</label>';;
	      $('#mainIncomeId').after(mainIncomeNewInput);
	   }
	});
	
	
	//行政案件
    var $casePenaltyId = $("#casePenaltyId input:last");
    $casePenaltyId.click(function(){
	   var $this = $(this);
	   var casePenaltyNewInput = '<input type="text" class="text fieldError" id="casePenaltyNewInputId" placeholder="${message("admin.message.anotherInput")}" name="casePenalty"></input>'+
	                             '<label class="fieldError" for="casePenaltyNewInputId">${message("admin.message.inputRequired")}</label>';
	   $('#casePenaltyNewInputId').remove();
	   $('#casePenaltyId label[class*="fieldError"]').remove();
	   if( $this.prop("checked") ){
	      $('#casePenaltyId').append(casePenaltyNewInput);
	      $('#casePenaltyNewInputId').focus();
	      $('#casePenaltyId label[class*="fieldError"]').remove();
	   }
	});
	
	//刑事案件
	var $caseCriminalId = $("#caseCriminalId input:last");
	$caseCriminalId.click(function(){
	   var $this = $(this);
	   var caseCriminalNewInput = '<input type="text" class="text fieldError" id="caseCriminalNewInputId" placeholder="${message("admin.message.anotherInput")}" name="caseCriminal"></input>'+
	                              '<label class="fieldError" for="caseCriminalNewInputId">${message("admin.message.inputRequired")}</label>';
	   $('#caseCriminalNewInputId').remove();
	   $('#caseCriminalId label[class*="fieldError"]').remove();
	   if( $this.prop("checked") ){
	      $('#caseCriminalId').append(caseCriminalNewInput);
	      $('#caseCriminalNewInputId').focus();
	      $('#caseCriminalId label[class*="fieldError"]').remove();
	   }
	});
	 
	
	//是否流动人口
    var $temporaryGuyIdFirst = $('#temporaryGuyId input:first');
	$temporaryGuyIdFirst.click(function(){
	
	   $("#temporaryRegistId input").removeAttr("checked");
	   $("#temporaryRegistId input").attr("disabled","disabled");

	   $("#temporaryNoRegistDuraId").css("visibility","hidden");
	   $("#temporaryNoRegistDuraId input").removeAttr("checked");
	   
	   $("#temporaryFixAdId input").removeAttr("checked");
	   $("#temporaryFixAdId input").attr("disabled","disabled");
	   $("#temporaryFixJobId input").removeAttr("checked");
	   $("#temporaryFixJobId input").attr("disabled","disabled");
	   
	   $("#temporaryTransToolsId input").removeAttr("checked");
	   $("#temporaryTransToolsId input").attr("disabled","disabled");
	   if($(this).prop("checked")){
	      $('#temporaryGuyId input:last').removeAttr("checked");
	      $("#temporaryRegistId input").removeAttr("disabled");
	      $("#temporaryFixAdId input").removeAttr("disabled");
	      $("#temporaryFixJobId input").removeAttr("disabled");
	      $("#temporaryTransToolsId input").removeAttr("disabled");
	   }
	   

	});
	
	var $temporaryGuyIdLast = $('#temporaryGuyId input:last');
	$temporaryGuyIdLast.click(function(){
	   $('#temporaryGuyId input:first').removeAttr("checked");
	   $("#temporaryRegistId input").removeAttr("checked");
	   $("#temporaryRegistId input").attr("disabled","disabled");
	   
	   $("#temporaryNoRegistDuraId").css("visibility","hidden");
	   $("#temporaryNoRegistDuraId input").removeAttr("checked");
	   
	   $("#temporaryFixAdId input").removeAttr("checked");
	   $("#temporaryFixAdId input").attr("disabled","disabled");
	   $("#temporaryFixJobId input").removeAttr("checked");
	   $("#temporaryFixJobId input").attr("disabled","disabled");
	   
	   $("#temporaryTransToolsId input").removeAttr("checked");
	   $("#temporaryTransToolsId input").attr("disabled","disabled");
	});	
	
	//暂住登记
	var $temporaryRegistIdFirst = $('#temporaryRegistId input:first');
	$temporaryRegistIdFirst.click(function(){
	   $('#temporaryRegistId input:last').removeAttr("checked");
	   $('#temporaryNoRegistDuraId').attr("style", "visibility:hidden");
	   $('#temporaryNoRegistDuraId input').removeAttr("checked");
	   
	});
	
	var $temporaryRegistIdLast = $('#temporaryRegistId input:last');
	$temporaryRegistIdLast.click(function(){
	   $('#temporaryRegistId input:first').removeAttr("checked");
	   $('#temporaryNoRegistDuraId').removeAttr("style");
	   $('#temporaryNoRegistDuraId input').removeAttr("checked");
	});	
	
	//暂住时间
	var $temporaryNoRegistDuraIdFirst = $('#temporaryNoRegistDuraId input:first');
	var $temporaryNoRegistDuraIdLast = $('#temporaryNoRegistDuraId input:last');
	$temporaryNoRegistDuraIdFirst.click(function(){
	   if($(this).prop("checked")){
	      $temporaryNoRegistDuraIdLast.removeAttr("checked");
	   }
	});
	$temporaryNoRegistDuraIdLast.click(function(){
	   if($(this).prop("checked")){
	      $temporaryNoRegistDuraIdFirst.removeAttr("checked");
	   }
	});
	
	//固定住所
	var $temporaryFixAdIdFirst = $('#temporaryFixAdId input:first');
	var $temporaryFixAdIdLast = $('#temporaryFixAdId input:last');
	$temporaryFixAdIdFirst.click(function(){
	  if($(this).prop("checked")){
	    $temporaryFixAdIdLast.removeAttr("checked"); 
	  }
	});
	$temporaryFixAdIdLast.click(function(){
	   if($(this).prop("checked")){
	     $temporaryFixAdIdFirst.removeAttr("checked"); 
	   }
	});
	
	//固定职业
	var $temporaryFixJobIdFirst = $('#temporaryFixJobId input:first');
	var $temporaryFixJobIdLast = $('#temporaryFixJobId input:last');
	$temporaryFixJobIdFirst.click(function(){
	   if($(this).prop("checked")){
	      $temporaryFixJobIdLast.removeAttr("checked");
	   }
	});
	$temporaryFixJobIdLast.click(function(){
	   if($(this).prop("checked")){
	      $temporaryFixJobIdFirst.removeAttr("checked");
	   }
	});
	
	
	
	//交通工具
	var $temporaryTransToolsId = $('#temporaryTransToolsId input:last');
	$temporaryTransToolsId.click(function(){
	   var $this = $(this);
	   var temporaryTransToolsInput = '<input type="text" class="text fieldError" id="temporaryTransToolsInputId" placeholder="${message("admin.message.anotherInput")}" name="temporaryTransTools"></input>'+
	                                  '<label class="fieldError" for="temporaryTransToolsInputId">${message("admin.message.inputRequired")}</label>';
	   $('#temporaryTransToolsInputId').remove();
	   $('#temporaryTransToolsId label[class*="fieldError"]').remove();
	   if( $this.prop("checked") ){
	      $('#temporaryTransToolsId').append(temporaryTransToolsInput);
	      $('#temporaryTransToolsInputId').focus();
	      $('#temporaryTransToolsId label[class*="fieldError"]').remove();
	   }
	});
	
	//本地落脚点类型
	var $localAreaCategoryId = $('#localAreaCategoryId input:last');
	$localAreaCategoryId.click(function(){
	  var $this = $(this);
	  var input = '<input type="text" class="text fieldError" id="inputId" placeholder="${message("admin.message.anotherInput")}" name="localAreaCategory"></input>'+
	              '<label class="fieldError" for="inputId">${message("admin.message.inputRequired")}</label>';
	  $('#inputId').remove();
	  $('#localAreaCategoryId label[class*="fieldError"]').remove();
	  if($this.prop("checked")){
	     $('#localAreaCategoryId').append(input);
	     $('#inputId').focus();
	     $('#localAreaCategoryId label[class*="fieldError"]').remove();
	  }
	});
	
	
	// 表单验证
	$inputForm.validate({
	    rules: {
	      idCardNum: {
		      required: true,
		      maxlength: 18
		   },
	       gender: "required",		   
	       name: "required",
	       ageOfArreset: {
	          required: true,
	          maxlength: 3,
	          digits: true
	       },
	       marriage: "required",
	       profession: {
	         required: true,
	         checkInput: "#newProfessionInputId"
	       },
	       parentDivorce: "required",
		   religion: "required",
		   ethnic: "required", 
		   educationLevel: "required",
		   sonOfFarmer: "required", 
		   criminalBefore: "required",
		   mainIncome: { 
		     required: true,
		     checkInput: "#mainIncomeNewInputId"
		   },
		   householdArea: "required",
		   householdAddress: "required",
		   currentPoliceStationName: "required",
		   currentArea: "required",
		   currentAddress: "required",
		   householdPoliceStationName: "required",
		   temporaryGuy: "required",
		   temporaryRegist: "required",
		   temporaryFixAd: "required",
		   temporaryFixJob: "required",
		   temporaryTransTools: "required",
		   beforeArrestDays: "required",
		   localCriminalArea: "required",
		   localCriminalAddress: "required",
		   localAreaCategory: "required"
	    },
	    messages: {
	       gender: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       marriage: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       profession: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       parentDivorce: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       religion: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       ethnic: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       educationLevel: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       sonOfFarmer: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       criminalBefore: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       mainIncome: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       householdArea: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       currentArea: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       temporaryGuy: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       temporaryRegist: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       temporaryFixAd: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       temporaryFixJob: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       beforeArrestDays: {
	          required: "${message("admin.validate.selectRequired")}"
	       },
	       localCriminalArea: {
	          required: "${message("admin.validate.selectRequired")}"
	       }
	    },
	});

});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a> &raquo; ${message("admin.message.edit")}
	</div>
	<form id="inputForm" action="save.jhtml" method="get">
		<ul id="tab" class="tab">
			<li>
				<input type="button" value="${message("admin.message.tableOne")}" />
			</li>
		</ul>
		<table class="input tabContent" id="tableOne">
		    <tr>
		       <td colspan="8" class="styleTitle">
		          ${message("admin.message.tableOneTitle")}
		       </td>
		    </tr>
		    <!-- The 1 row -->
			<tr>
				<th>
					${message("admin.message.cardId")}:
				</th>
				<td>
					<input type="text" name="idCardNum" class="text" maxlength="20" />
				</td>
				<th>
				    ${message("admin.message.gender")}:
				</th>
				<td>
			       <select name="gender">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list genderGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
				</td>
				<th>
				    ${message("admin.message.name")}:
				</th>
				<td>
				    <input type="text" name="name" class="text" maxlength="20"/>
				</td>
				<th>
				    ${message("admin.message.alias")}:
				</th>
				<td>
				    <input type="text" name="alias" class="text" maxlength="20"/>
				</td>
			</tr>
			<!-- The 2 row -->
			<tr>
			    <th>
			        ${message("admin.message.arrestAge")}:
			    </th>
			    <td>
			        <input type="text" name="age" class="text" maxlenth="10"/>
			    </td>
			    <th>
			       ${message("admin.message.marriage")}:
			    </th>
			    <td>
			       <select name="marriage">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list marriageGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>	       				       			       
			    </td>
			    <th>
			        ${message("admin.message.profession")}:
			    </th>
			    <td id="tdProfessionId">
			       <select id="professionId" name="profession">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list professionGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>		    
			    </td>			    
			    <th>
			        ${message("admin.message.parentDivorce")}:
			    </th>
			    <td>
			       <select name="parentDivorce">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>		       			        
			    </td>
			</tr>
			
			<!-- the 3 row -->
			<tr>
			   <th>
			       ${message("admin.message.religion")}:
			   </th>
 			   <td>
			       <select name="religion">
			          <option value="">${message("admin.common.choose")}</option>
			          [#list religionGroup as religion ]
			             <option value="${religion.id}">
			                ${religion.name}
			             </option>
			          [/#list]
			       </select>
			   </td>
			   <th>
			      ${message("admin.message.ethnic")}:
			   </th>
			   <td>
			       <select name="ethnic">
			           <option value="">${message("admin.common.choose")}</option>
			           [#list ethnicGroup as ethnic ]
			               <option value="${ethnic.id}">
			                  ${ethnic.name}
			               </option>   
			           [/#list]
			       </select>
			   </td>
			   <th>
			        ${message("admin.message.education")}:
			   </th>
			   <td>
			       <select name="educationLevel">
			          <option value="">${message("admin.common.choose")}</option>
			          [#list educationGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			          [/#list]
			       </select>			    
			   </td>			   
			   <th>
			      ${message("admin.message.sonOfFarmer")}:
			   </th>
			   <td>
			       <select name="sonOfFarmer">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			   </td>
			</tr>
			
			<!-- the 4 row -->
			<tr>
			    <th>
			        ${message("admin.message.criminalBefore")}:
			    </th>
			    <td colspan="3">
			       <select name="criminalBefore">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select> 			        
			    </td>
			    <th>
			       ${message("admin.message.mainIncome")}:
			    </th>
			    <td id="tdMainIncomeId" colspan="3">
			       <select id="mainIncomeId" name="mainIncome">
			       <option value="">${message("admin.common.choose")}</option>
			        [#list mainIncomeGroup as masterConfig ]
			           <option value="${masterConfig.cd}">
				         ${masterConfig.decode}
				       </option>
			        [/#list]
			      </select>       
			    </td>
			</tr>			
			
			
			<!-- 5 -->
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.contectTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.contectNumberTitle")}:
			    </th>
			    <td colspan="6">
			       <select name="contectNumOrNot">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select> 			        
			    </td>			
			</tr>
			<tr>
			   <th>
			      ${message("admin.message.phoneNumber")}
			   </th>
			   <td colspan="6">
			      <input type="text" name="phoneNumber" class="text" />
			   </td>
			</tr>
			<tr>
			   <th>
			      ${message("admin.message.telephoneNumber")}
			   </th>
			   <td colspan="6">
			       <input type="text" name="telephoneNumber" class="text" />
			   </td>
			</tr>
						
			<!-- the 6 row -->
			<tr>
			    <th rowspan="5">
			        ${message("admin.message.censusTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.noRigisterCensusTitle")}:
			    </th>
			    <td colspan="6">
			       <select name="noRigisterCensus">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select> 			        
			    </td>			   
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.householdArea")}:
			   </th>
			    <td colspan="6">
			      <span class="fieldSet">
			         <input type="hidden" id="householdAreaId" name="householdArea" />
			      </span>
			    </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.householdAddress")}:
			   </th>
			   <td colspan="6">
			       <input type="text" style="width:350px;" class="text" name="householdAddress" />
			   </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.householdPoliceStationName")}:
			   </th>
			   <td colspan="6">
			       <select name="currentPoliceStationName">
			          <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]			          
			       </select>
			   </td>			
			</tr>
			
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.relativeCensusTitle")}:
			    </th>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.relativeName")}
			   </th>
			   <td colspan="6">
			       <input name="relativeName" type="text" class="text" />
			   </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.relativeArea")}
			   </th>
			   <td colspan="6">
			      <span class="fieldSet">
			          <input name="relativeArea" id="relativeAreaId"  type="hidden" />
			      </span>			       
			   </td>
			</tr>
			<tr>
			   <th>
			      ${message("admin.message.relativeAddress")}:
			   </th>
			   <td colspan="6">
			      <input type="text" style="width:350px;" class="text" name="relativeAddress" />
			   </td>
			</tr>
			<tr>
			   <th>
			      ${message("admin.message.relativeAddressPoliceName")}:
			   </th>
			   <td colspan="6">
			       <select name="relativeAddressPoliceName">
			          <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]			          
			       </select>
			   </td>
			</tr>		
			
			
			<!-- 8 row -->
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.currentAddressTitle")}:
			    </th>
			</tr> 
			<tr>
			   <th>
			       ${message("admin.message.currentArea")}:
			   </th>
			   <td colspan="6">
			      <span class="fieldSet">
			        <input type="hidden" id="currentAreaId" name="currentArea" />
			      </span>  
			   </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.currentAddress")}:
			   </th>
			   <td colspan="6">
			       <input type="text" style="width:350px;" class="text" name="currentAddress" />
			   </td>
			</tr>			
			<tr>
			   <th>
			       ${message("admin.message.currentPoliceStationName")}:
			   </th>
			   <td colspan="6">
			       <select name="currentPoliceStationName">
			          <option value="">${message("admin.common.choose")}</option>
			          	 [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]
			       </select>
			   </td>
			</tr>
			
			
			<!-- 9 row -->
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.caseType")}:
			    </th>			    
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.casePenalty")}:
			    </th>
			    <td colspan="6">
			        <select name="casePenalty">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list penaltyCategoryGroup as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			    </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.caseCriminal")}:
			   </th>
			   <td colspan="6">
			        <select name="caseCriminal">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list criminalCategoryGroup as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			   </td>
			</tr>
			

			<!-- the 10 row -->
			<tr>
			    <th rowspan="7">
			        ${message("admin.message.temporaryInfo")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.temporaryChoice")}:
			    </th>
			    <td colspan="6"> 
			        <select name="temporaryGuy">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			    </td>
			 </tr>   
			<tr>
			    <th>
			        ${message("admin.message.temporaryRegist")}:
			    </th>
			    <td id="temporaryRegistId" colspan="6">
			        <select name="temporaryRegist">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>	    
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.temporaryFixAd")}:
			    </th>
			    <td id="temporaryFixAdId" colspan="6">
			        <select name="temporaryFixAd">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.temporaryNoRegistDura")}:
			    </th>
			    <td colspan="6">
			        <select name="temporaryNoRegistDura">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.temporaryFixJob")}:
			    </th>
			    <td id="temporaryFixJobId" colspan="6">
			        <select name="temporaryFixJob">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>		        
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.temporaryTransTools")}:
			    </th>
			    <td id="temporaryTransToolsId" colspan="6">
			        <select name="temporaryTransTools">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list temporaryTransToolsGroup as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			    </td>
			</tr>	
					
			<!-- the 11 row -->
			<tr>
			    <th rowspan="5">
			        ${message("admin.message.localCriminalDetail")}:
			    </th>
			</tr> 
			<tr>
			     <th>
			         ${message("admin.message.localAreaCategory")}:
			     </th>
			     <td id="localAreaCategoryId" colspan="6">
			        <select style="width:150px;" name="localAreaCategory">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list localAreaCategoryGroup as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			           
			        </select>
			     </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.localCriminalArea")}:
			   </th>
			   <td colspan="6">
			      <span class="fieldSet">
			        <input type="hidden" id="localCriminalAreaId" name="localCriminalArea" />
			      </span>  
			   </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.localCriminalAddress")}:
			   </th>
			   <td colspan="6">
			       <input type="text" style="width:350px;" class="text" name="localCriminalAddress" />
			   </td>
			</tr>		
			<tr>
			    <th>
			        ${message("admin.message.localCriminalPoliceName")}:
			    </th>
			    <td colspan="6">
			       <select name="localCriminalPoliceName">
			          <option value="">${message("admin.common.choose")}</option>
			             [#list commonBool as masterConfig ]
			                <option value="${masterConfig.cd}">
			                    ${masterConfig.decode}
			                </option>
			             [/#list]			          
			       </select>
			    </td>
			</tr>
			
			<!-- the 12 row -->
			<tr>
			    <th>
			        ${message("admin.message.beforeArrestDay")}:
			    </th>
			    <td colspan="7">
			       <select name="beforeArrestDays">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list durationStayGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>
			</tr> 
			
			<tr>
			   <th rowspan="3">
			        ${message("admin.message.criminalConditionTitle")}:
			   </th>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.ciminalMatesNum")}
			   </th>
			   <td colspan="6">
			       <input name="ciminalMatesNum" type="text" class="text" />
			   </td>
			</tr>
			<tr>
			   <th>
			       ${message("admin.message.ciminalNum")}
			   </th>
			   <td colspan="6">
			       <input name="ciminalNum" type="text" class="text" />
			   </td>
			</tr>								
		</table>
		<table class="input">
			<tr>
				<td style="text-align:center;">
					<input type="submit" class="button" value="${message("admin.common.submit")}">
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.jhtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>